package com.bangdream.michelia.view.activity.currency;

import android.app.FragmentManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;

import com.bangdream.michelia.R;
import com.bangdream.michelia.presenter.base.BasePresenter;
import com.bangdream.michelia.view.activity.base.BaseActivity;

public class TestActivity extends BaseActivity {
    @Override
    public int getLayout() {
        //return R.layout.test_activity;
        return R.layout.test_layout;
    }

    @Override
    public void findId() {

    }

    @Override
    public void setListener() {

    }

    @Override
    public void logic() {
        //addFragment(new MainHome());
    }

    @Override
    public BasePresenter createPresenter() {
        return null;
    }
    private void addFragment(Fragment fragment){
        FragmentManager fragmentManager = getFragmentManager();
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.add(R.id.headLayout,fragment);
        ft.commit();
    }
}
